package Inheritance.继承;

public class Animal {

	public int age = 10;
	public String name;

	public void eat() {
		System.out.println("动物具有吃东西的能力。");
	}

	public Animal() {
		System.out.println("Animal类执行了。");
		age = 20;
	}

	public Animal(int age) {
		this.age = age;
	}
}
